.class public Lcom/glympse/platform/ProviderSkyhook$PostAccountCreationToMainThread;
.super Lcom/glympse/platform/GRunnable;
.source "ProviderSkyhook.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/platform/ProviderSkyhook;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4
    name = "PostAccountCreationToMainThread"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/platform/ProviderSkyhook;


# direct methods
.method protected constructor <init>(Lcom/glympse/platform/ProviderSkyhook;)V
    .locals 0
    .parameter

    .prologue
    .line 356
    iput-object p1, p0, Lcom/glympse/platform/ProviderSkyhook$PostAccountCreationToMainThread;->this$0:Lcom/glympse/platform/ProviderSkyhook;

    invoke-direct {p0}, Lcom/glympse/platform/GRunnable;-><init>()V

    return-void
.end method


# virtual methods
.method public Run()V
    .locals 2

    .prologue
    .line 362
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v1, p0, Lcom/glympse/platform/ProviderSkyhook$PostAccountCreationToMainThread;->this$0:Lcom/glympse/platform/ProviderSkyhook;

    iget-object v1, v1, Lcom/glympse/platform/ProviderSkyhook;->m_oWPSAuthentication:Lcom/skyhookwireless/wps/WPSAuthentication;

    invoke-virtual {v1}, Lcom/skyhookwireless/wps/WPSAuthentication;->getUsername()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/glympse/platform/Config;->m_strSkyhookName:Ljava/lang/String;

    .line 363
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    invoke-virtual {v0}, Lcom/glympse/platform/Config;->Save()V

    .line 366
    iget-object v0, p0, Lcom/glympse/platform/ProviderSkyhook$PostAccountCreationToMainThread;->this$0:Lcom/glympse/platform/ProviderSkyhook;

    iget-boolean v0, v0, Lcom/glympse/platform/ProviderSkyhook;->m_fRunning:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oLocManager:Lcom/glympse/platform/LocManager;

    iget v1, v1, Lcom/glympse/platform/LocManager;->m_eLocProvider:I

    if-ne v0, v1, :cond_0

    .line 368
    iget-object v0, p0, Lcom/glympse/platform/ProviderSkyhook$PostAccountCreationToMainThread;->this$0:Lcom/glympse/platform/ProviderSkyhook;

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v1, v1, Lcom/glympse/platform/Config;->m_strSkyhookName:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/glympse/platform/ProviderSkyhook;->access$0(Lcom/glympse/platform/ProviderSkyhook;Ljava/lang/String;)V

    .line 370
    :cond_0
    return-void
.end method
